﻿<UserControl x:Class="ViewSharedSettings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="351">
    <Grid>
        <TabControl  Background="White">
            <TabItem Header="Parametres Globaux">
                <Grid VerticalAlignment="Top" >
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <TextBlock HorizontalAlignment="Right" Margin="5"  VerticalAlignment="Center" Text="Dossier de partage global" />
                    <DockPanel Margin="5" Grid.Column="1">
                        <Button Content=" ... " DockPanel.Dock="Right" Click="Button_Click_1" Padding="5"  VerticalAlignment="Center"  />
                        <TextBlock TextWrapping="Wrap"  VerticalAlignment="Center" Text="{Binding GlobalFolder}" DockPanel.Dock="Left"  />
                    </DockPanel>
                </Grid>
            </TabItem>
            <TabItem Header="Parametres du Projet" Visibility="{Binding ProjectTabVisibility}">
                <StackPanel >
                    <Grid VerticalAlignment="Top" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <TextBlock HorizontalAlignment="Right" Margin="5"  VerticalAlignment="Center" Text="Dossier de partage du projet" />
                        <DockPanel Margin="5" Grid.Column="1">
                            <!--<Button Content=" ... " DockPanel.Dock="Right" Click="Button_Click_2"  Padding="5"  VerticalAlignment="Center"  />-->
                            <TextBlock TextWrapping="Wrap"  VerticalAlignment="Center" Text="{Binding ProjectFolder}" DockPanel.Dock="Left"  />
                        </DockPanel>
                    </Grid>
                    <GroupBox Header="Administrateurs">
                        <StackPanel  Margin="5" >
                            <RadioButton  Margin="5" Content="Autoriser tout le monde" />
                            <RadioButton  Margin="5" Content="Autoriser personnes connues" />
                            <RadioButton  Margin="5" Content="Autoriser personnes de la liste" />
                            <DataGrid />
                        </StackPanel>
                    </GroupBox>
                    <GroupBox Header="Utilisateurs">
                        <StackPanel  Margin="5" >
                            <RadioButton  Margin="5" Content="Autoriser tout le monde" />
                            <RadioButton  Margin="5" Content="Autoriser personnes connues" />
                            <RadioButton  Margin="5" Content="Autoriser personnes de la liste" />
                            <DataGrid />
                        </StackPanel>
                    </GroupBox>
                </StackPanel>
            </TabItem>
        </TabControl>
    </Grid>
</UserControl>
